import request from '@/utils/request'

// 查询就业帮扶预约列表
export function listAssistance(query) {
  return request({
    url: '/employment/assistance/list',
    method: 'get',
    params: query
  })
}

// 查询就业帮扶预约详细
export function getAssistance(id) {
  return request({
    url: '/employment/assistance/' + id,
    method: 'get'
  })
}

// 新增就业帮扶预约
export function addAssistance(data) {
  return request({
    url: '/employment/assistance',
    method: 'post',
    data: data
  })
}

// 修改就业帮扶预约
export function updateAssistance(data) {
  return request({
    url: '/employment/assistance',
    method: 'put',
    data: data
  })
}

// 删除就业帮扶预约
export function delAssistance(id) {
  return request({
    url: '/employment/assistance/' + id,
    method: 'delete'
  })
}
